package org.bouncycastle.crypto.params;

import java.math.BigInteger;

/**
 * 椭圆曲线私钥参数
 * 
 * @author john.peng
 *
 */
public class ECPrivateKeyParameters extends ECKeyParameters {
	BigInteger d;

	/**
	 * 默认的构造函数
	 * 
	 * @param d      d
	 * @param params ECDomainParameters
	 */
	public ECPrivateKeyParameters(BigInteger d, ECDomainParameters params) {
		super(true, params);
		this.d = d;
	}

	/**
	 * 获取d
	 * 
	 * @return d
	 */
	public BigInteger getD() {
		return d;
	}
}
